{extend name="base" /} {block name="body"}
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                           <blockquote style="padding: 10px;border-left: 5px solid #009688;" class="layui-elem-quote">
                             {$gonggao}
                             <span id="nowtime" style="color:#FF5722;float: right;font-weight:700"></span>
                          </blockquote>
                      <table width="100%">
                    <tr>
                  
                  
                    </tr>
                      </table>   
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">数据统计</div>
                        <div class="layui-card-body ">
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('feelym/articles/index')}" class="x-admin-backlog-body">
                                        <h3>待审网址</h3>
                                        <p>
                                            <cite>{$tongji.artWaitCheck}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('feelym/articles/index')}" class="x-admin-backlog-body">
                                        <h3>网址总数</h3>
                                        <p>
                                            <cite>{$tongji.artCount}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('feelym/forum/index')}" class="x-admin-backlog-body">
                                        <h3>待审帖子</h3>
                                        <p>
                                            <cite>{$tongji.forumWaitCheck}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6 ">
                                    <a href="{:url('feelym/forum/index')}" class="x-admin-backlog-body">
                                        <h3>帖子总数</h3>
                                        <p>
                                            <cite>{$tongji.forumCount}</cite></p>
                                    </a>
                                </li>
                            </ul>
                            <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('feelym/user/index')}" class="x-admin-backlog-body">
                                        <h3>今日注册</h3>
                                        <p>
                                            <cite>{$tongji.userRegToday}</cite></p>
                                    </a>
                                </li>
                                <li class="layui-col-md2 layui-col-xs6">
                                    <a href="{:url('feelym/user/index')}" target="" class="x-admin-backlog-body">
                                        <h3>会员总数</h3>
                                        <p>
                                            <cite>{$tongji.userCount}</cite></p>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">系统信息</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th style="width: 15%;">程序版本</th>
                                        <td>LaySNS内容社区综合系统（二次开发版）</td></tr>
                                    <tr>
                                        <th style="width: 15%;">操作系统</th>
                                        <td>{:php_uname('s')}</td></tr>
                                    <tr>
                                        <th style="width: 15%;"> PHP版本</th>
                                        <td>{:PHP_VERSION}</td></tr>
                                    <tr>
                                        <th style="width: 15%;">Zend版本</th>
                                        <td>{:Zend_Version()}</td></tr>
                                    <tr>
                                        <th style="width: 15%;">服务器解译引擎</th>
                                        <td>{:$_SERVER['SERVER_SOFTWARE']}</td></tr>
                                    <tr>
                                        <th style="width: 15%;">服务器语言</th>
                                        <td>{:$_SERVER['HTTP_ACCEPT_LANGUAGE']}</td></tr>
                                    <tr>
                                        <th style="width: 15%;">服务器Web端口</th>
                                        <td>{:$_SERVER['SERVER_PORT']}</td></tr>
                                    <tr>
                                        <th style="width: 15%;">服务器上传文件大小限制</th>
                                        <td>upload_max_files：{:ini_get('post_max_size')} / post_max_size：{:ini_get('upload_max_filesize')}</td></tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">开发团队</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>武汉类森科技有限公司 / 书蓝画青(feelym.com)</td>
                                    </tr>
                                    <tr>
                                        <th>项目经理</th>
                                        <td>捧在手心(QQ 278198348)</td></tr>
                                    <tr>
                                        <th>特别鸣谢</th>
                                        <td>张先生(QQ 896683945) / 日辰大表哥（QQ 439560） / 梦雨(QQ 50361804) / 0d(QQ 1834833515) / 狮(QQ 2950918980)</td></tr>
                             
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <style id="welcome_style"></style>
                <div class="layui-col-md12">
                    <blockquote class="layui-elem-quote layui-quote-nm">
                        最后一次修改的时间为：</blockquote></div>
            </div>
        </div>
{/block} {block name="script"}
<script>
    //页面加载调用
    window.onload=function(){
        //每1秒刷新时间
      setInterval("NowTime()",0);
    }
    function NowTime(){
        var myDate=new Date();
        var y = myDate.getFullYear();
        var M = myDate.getMonth()+1;     //获取当前月份(0-11,0代表1月)
        var d = myDate.getDate();        //获取当前日(1-31)
        var h = myDate.getHours();       //获取当前小时数(0-23)
        var m = myDate.getMinutes();     //获取当前分钟数(0-59)
        var s = myDate.getSeconds();     //获取当前秒数(0-59)
        
        //检查是否小于10
        M=check(M);
        d=check(d);
        h=check(h);
        m=check(m);
        s=check(s);
        var timestr = y+"-"+M+"-"+d+" "+h+":"+m+":"+s;
        document.getElementById("nowtime").innerHTML= '系统时间：' + timestr;
    }
    //时间数字小于10，则在之前加个“0”补位。
    function check(i){
        var num = (i<10)?("0"+i) : i;
        return num;
    }
</script>
<script>
    layui.use(['layer', 'jquery'], function() {
        var jq = layui.jquery;

        jq('#hiddenbq').on('click', function() {
            var url = jq(this).data('url');
            var loading = layer.load(2, {
                shade: [0.2, '#000']
            });
            jq.getJSON(url, function(data) {
                layer.close(loading);

                if (data.code == 200) {

                    layer.msg(data.msg, {
                        icon: 1,
                        time: 1000
                    }, function() {
                        location.reload();
                    });
                } else {

                    layer.msg(data.msg, {
                        icon: 2,
                        anim: 6,
                        time: 1000
                    });
                }
            });
        });
        jq('#update').click(function() {
            var url = jq(this).data('url');
            layer.confirm('升级之前请先备份好自己修改过的模板文件？', {
                btn: ['已备份好', '没有'] //按钮
            }, function(index) {
                layer.close(index);
                var loading = layer.load(2, {
                    shade: [0.2, '#000']
                });
                jq.getJSON(url, function(data) {
                    layer.close(loading);

                    if (data.code == 200) {

                        layer.msg(data.msg, {
                            icon: 1,
                            time: 1000
                        }, function() {
                            location.reload();
                        });
                    } else {

                        layer.msg(data.msg, {
                            icon: 2,
                            anim: 6,
                            time: 1000
                        });
                    }
                });
                return false;
            }, function(index) {
                layer.close(index);
            });

        });
    });
    console.log('采集秘钥为：<?php echo session_id();?>');
</script>
{/block}